<template>
	<view>
		<image :src="detail.cover_url" mode=""></image>
		<rich-text :nodes="detail.details"></rich-text>
	</view>
</template>

<script>
	import {getDetail} from "../../request/api.js"
	export default {
		data() {
			return {
				detail:""
			}
		},
		onLoad(options) {
			
			console.log(options);
			getDetail({id:options.id}).then(res=>{
				console.log(res);
				this.detail=res.goods
				
			})
			
		},
		methods: {
			
		}
	}
</script>

<style>

</style>
